//============================全部的路由信息===========================

//Goods
import AddGoods from '../pages/Goods/AddGoods/AddGoods';
import ClassManage from '../pages/Goods/ClassManage/ClassManage';
import ClassManageIndex from '../pages/Goods/ClassManage/ClassManageIndex.jsx';
import GoodsManage from '../pages/Goods/GoodsManage/GoodsManage';
import GoodsComments from '../pages/Goods/GoodsComments/GoodsComments';
import GoodsIndex from '../pages/Goods/GoodsManage/GoodsIndex';
import GoodsLabel from '../pages/Goods/GoodsLabel/GoodsLabel';
import ModifyGoods from '../pages/Goods/ModifyGoods/ModifyGoods';
import RecyceGoods from '../pages/Goods/RecyceGoods/RecyceGoods';
//order订单
import Order from '../pages/Order/Order';
import Batch from '../pages/Order/Batch/Batch';
import Deliverylist from '../pages/Order/DeliveryList/DeliveryList';
import Orderlist from '../pages/Order/OrderList/OrderList';
import Teamorderlist from '../pages/Order/TeamOrderList/TeamOrderList';
import Deliverydetail from '../pages/Order/DeliveryList/DeliveryDetail/DeliveryDetail';
import Refundman from '../pages/Order/OrderList/OrderDetail/RefundMan/RefundMan';
import Operate from '../pages/Order/OrderList/OrderDetail/Operate/Operate';
import Orderdetail from '../pages/Order/OrderList/OrderDetail/OrderDetail';
import TeamOrderDetail from '../pages/Order/TeamOrderList/TeamOrderDetail/TeamOrderDetail';
import ZhuliHuoDong from '../pages/Order/RefundList/RefundList';

//set  设置
import SheZhi from '../pages/Set/SheZhi';
import AddDeliveryArea from '../pages/Set/AddDeliveryArea';
import AddStore from '../pages/Set/AddStore';
import BoundManage from '../pages/Set/BoundManage';
import ModifyStore from '../pages/Set/ModifyStore';
import SetDelivery from '../pages/Set/SetDelivery';
import SetDeliveryArea from '../pages/Set/SetDeliveryArea';
import SetMenu from '../pages/Set/SetMenu';
import StoreSet from '../pages/Set/StoreSet';
import SetPay from '../pages/Set/SetPay';
import StoeList from '../pages/Set/StoeList';
import StoreBasicSet from '../pages/Set/StoreBasicSet';
import StoreGoodsShow from '../pages/Set/StoreGoodsShow';
import StoreShoppingProcess from '../pages/Set/StoreShoppingProcess';
import StoreShowSet from '../pages/Set/StoreShowSet';
import StoreInter from '../pages/Set/StoreInter';
import StoreShareSet from '../pages/Set/StoreShareSet';
import StoreInfo from '../pages/Set/StoreInfo.jsx';

//website网站
import Wangzhan  from '../pages/Website/Wangzhan'
import AdvertisingList from '../pages/Website/AdvertisingList';
import AdvertisingListTabel from '../pages/Website/AdvertisingListTabel';//广告管理
import ArticleClassification from '../pages/Website/ArticleClassification';//文章分类
import ModifyArticleClassification from  '../pages/Website/SecondarySite/ModifyArticleClassification'; //修改文章分类
import ArticleClassificationTable from  '../pages/Website/ArticleClassificationTable'; //文章分类表格
import ArticleLists from '../pages/Website/ArticleLists';
import ArticleListsTable from '../pages/Website/ArticleListsTable'; //文章管理表格
import PowerActivities from '../pages/Website/PowerActivities'; //助力活动
// import PowerActivities from "../pages/Website/PowerActivities"
//secondarySite
import AddAD from '../pages/Website/SecondarySite/AddAD'; //添加广告
import ModifyAD from '../pages/Website/SecondarySite/ModifyAD'; //修改广告
import AddPower from '../pages/Website/SecondarySite/AddPower'; //添加助力

import PowerActivitiesTable from '../pages/Website/PowerActivitiesTable'; //助力管理

import ModifyArticle from '../pages/Website/SecondarySite/ModifyArticle';
import ModifyPower from '../pages/Website/SecondarySite/ModifyPower'; //修改助力
import NewArticles from '../pages/Website/SecondarySite/NewArticles';

// import CuXiao from '../pages/promotion/CuXiao';
// import YouJuanJuanGuanLi from '../pages/promotion/coupon/YouHuiJuanGuanLi';
// import XianShiMiaoSha from '../component/promotion/XianShiMiaoSha';
// import XinYunChouJiang from '../component/promotion/XinYunChouJiang';
// import ChouJiangXiangQing from '../pages/promotion/choujiang/ChouJiang'; //抽奖详情
// import KaJanMain from '../pages/promotion/kaquan/KaQuanMain';

//weixin
import WeiXin from '../pages/WeiXin/WeiXin';
import WeiXinMenu from '../pages/WeiXin/WeiXinMenu';
import WeiXinModuleInfo from '../pages/WeiXin/WeiXinModulInfo';
import WeiXinOrderMsg from '../pages/WeiXin/WeiXinOrderMsg';
import WeiXinPushInfo from '../pages/WeiXin/WeiXinPushInfo';
import WeiXinPushList from '../pages/WeiXin/WeiXinPushList';
import WeiXinSet from '../pages/WeiXin/WeiXinSet';
import WeiXinShareRecord from '../pages/WeiXin/WeiXinShareRecord';
import WeiXinTestVIP from '../pages/WeiXin/WeiXinTestVIP';
//promotion 促销
import CuXiao from '../pages/promotion/cuXiao'
// 抽奖
import Draw from '../pages/promotion/choujiang/Draw';
import LockDraw from '../pages/promotion/choujiang/LockDraw';

import updateDraw from '../pages/promotion/choujiang/UpdateDraw.jsx';

import WinningUsers from '../pages/promotion/choujiang/WinningUsers';
import NeiDingChouJiang from '../pages/promotion/choujiang/NeiDingChouJiang';
import XiuGaiChouJiang from '../pages/promotion/choujiang/XiuGaiChouJiang';
// 优惠券
import YongHu from '../pages/promotion/coupon/YongHuFaFang'; //按用户发放优惠券
import CouPon from '../pages/promotion/coupon/CouponManagement';
// import InsertCoupons from "../pages/promotion/coupon/InsertCoupons"//修改优惠卷
import LssueCoupons from '../pages/promotion/coupon/LssueCoupons';
import ModifyCoupon from '../pages/promotion/coupon/ModifyCoupon';
import NewCoupons from '../pages/promotion/coupon/NewCoupons'; //新建优惠卷
import TypeDistribution from '../pages/promotion/coupon/TypeDistribution'; //商品发放优惠券
import ViewCoupons from '../pages/promotion/coupon/ViewCoupons';
//活动
//卡卷
import KaQuanGuanLi from '../pages/promotion/kaquan/KaQuanGuanLi';
import TianJiaKaQuan from '../pages/promotion/kaquan/TianJiaKaQuan';
//秒杀
import MiaoSha from '../pages/promotion/seckill/MiaoSha';
import MiaoShaInsert from '../pages/promotion/seckill/MiaoShaInsert';
//会员
import VIP from '../pages/Vip/VIP';
import AddPartner from '../pages/Vip/AddPartner';
import AdjustAccount from '../pages/Vip/AdjustAccount';
import LookAccount from '../pages/Vip/LookAccount';
import Partner from '../pages/Vip/Partner';
import SetDetails from '../pages/Vip/SetDetails';
import SetManage from '../pages/Vip/SetManage';
import SignLog from '../pages/Vip/SignLog';
import SignManage from '../pages/Vip/SignManage';
import VipLevel from '../pages/Vip/VipLevel';
import VipManage from '../pages/Vip/VipManage';
//权限
import AddManeger from '../pages/jurisdiction/AddManeger';
import AssignPermissions from '../pages/jurisdiction/AssignPermissions';
import ChangManeger from '../pages/jurisdiction/ChangManeger';
import Maneger from '../pages/jurisdiction/Maneger';
import ManegerLog from '../pages/jurisdiction/ManegerLog';
import SelectLog from '../pages/jurisdiction/SelectLog';
import QuanXian from '../pages/jurisdiction/QuanXian';
//Home
import Home from '../pages/Home';
import Login from '../component/login/Login';
import ShouYe from '../pages/shouYe/ShouYe';
// import CuXiao from '../pages/promotion/cuXiao';
let LuYou = [
  {
    name: '登录',
    path: '/Login',
    component: Login,
    meta: {
      require: false,
    },
  },
  {
    name: '登录',
    path: '/',
    redirect: '/Login',
    meta: {
      require: false,
    },
  },
  {
    name: 'Home',
    path: '/Home',
    component: Home,
    redirect: '/Home/shouYe',
    meta: {
      require: true,
    },
    role: ['admin', 'user'],
    children: [
      {
        name: '首页',
        path: '/Home/shouYe',
        component: ShouYe,
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
      },
      {
        path: '/Home/ShangPing/GoodsManage',
        name: '商品管理',
        component: GoodsManage,
        redirect: '/Home/ShangPing/GoodsManage/GoodsIndex',
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/ShangPing/GoodsManage/GoodsIndex',
            name: '商品',
            component: GoodsIndex,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/ShangPing/GoodsManage/RecyceGoods',
            name: '回收站',

            component: RecyceGoods,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/ShangPing/GoodsManage/AddGoods',
            name: '增加商品',
            component: AddGoods,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/ShangPing/GoodsManage/ModifyGoods',
            name: '修改商品',
            component: ModifyGoods,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      {
        path: '/Home/ShangPing/ClassManage',
        name: '分类管理',
        component: ClassManage,
        redirect: '/Home/ShangPing/ClassManage/ClassIndex',
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/ShangPing/ClassManage/ClassIndex',
            name: '分类管理',
            component: ClassManageIndex,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      {
        path: '/Home/ShangPing/GoodsLabel',
        name: '商品标签',
        component: GoodsLabel,
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
      },
      {
        path: '/Home/ShangPing/GoodsComments',
        name: '商品评论',
        component: GoodsComments,
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
      },

      // {
      //   name: '促销',
      //   path: '/Home/cuXiao',
      //   component: CuXiao,
      //   redirect: '/Home/cuXiao/CouPon',
      //   meta: {
      //     require: true,
      //   },
      //   role: ['admin', 'user'],
      //   children: [
      //     {
      //       path: '/Home/cuXiao/CouPon',
      //       name: '优惠劵管理',
      //       component: CouPon,
      //       redirect: '/Home/cuXiao/CouPon/youhuijuanGuanLi',
      //       meta: {
      //         require: true,
      //       },
      {
        name: '促销',
        path: '/Home/cuXiao',
        component: CuXiao,
        redirect: '/Home/cuXiao/CouPon',
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/cuXiao/CouPon',
            name: '优惠劵管理',
            component: CouPon,
            redirect: '/Home/cuXiao/CouPon/NewCoupons',
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/cuXiao/CouPon/NewCoupons',
                name: '新增',
                component: NewCoupons,
                // children: [
                //     { path:'/CouPon',
                //         name:'新增（订单发放）',
                //         component:'CouPon',
                //         meta:{
                //             require:false
                //         },},
                //     { path:'/CouPon',
                //         name:'新增（团长优惠）',
                //         component:'CouPon',
                //         meta:{
                //             require:false
                //         },},
                //     { path:'/CouPon',
                //         name:'新增（积分兑换）',
                //         component:'CouPon',
                //         meta:{
                //             require:false
                //         },},
                //     ],
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/CouPon/ViewCoupons',
                name: '查看优惠券',
                component: ViewCoupons,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/CouPon/LssueCoupons',
                name: '发放优惠券',
                component: LssueCoupons,
                children: [
                  {
                    path: '/Home/cuXiao/CouPon/TypeDistribution',
                    name: '发放（按商品发放）',
                    component: TypeDistribution,
                    meta: {
                      require: true,
                    },
                    role: ['admin', 'user'],
                  },
                  {
                    path: '/Home/cuXiao/CouPon/YongHu',
                    name: '发放（按用户发放）',
                    component: YongHu,
                    meta: {
                      require: true,
                    },
                    role: ['admin', 'user'],
                  },
                ],
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/CouPon/ModifyCoupon',
                name: '修改',
                component: ModifyCoupon,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/cuXiao/MiaoSha',
            name: '限时秒杀',
            component: MiaoSha,
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/cuXiao/MiaoSha/MiaoShaInsert',
                name: '添加秒杀',
                component: MiaoShaInsert,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/cuXiao/Draw',
            name: '幸运抽奖',
            component: Draw,
            children: [
              {
                path: '/Home/cuXiao/Draw/updateDraw',
                name: '添加抽奖',
                component: updateDraw,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/Draw/LockDraw',
                name: '抽奖详情',
                component: LockDraw,
                children: [
                  {
                    path: '/Home/cuXiao/Draw/LockDraw/WinningUsers',
                    name: '中奖用户',
                    component: WinningUsers,
                    meta: {
                      require: true,
                    },
                    role: ['admin', 'user'],
                  },
                  {
                    path: '/Home/cuXiao/Draw/LockDraw/NeiDingChouJiang',
                    name: '内定抽奖',
                    component: NeiDingChouJiang,
                    meta: {
                      require: true,
                    },
                    role: ['admin', 'user'],
                  },
                ],
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/Draw/XiuGaiChouJiang',
                name: '修改抽奖',
                component: XiuGaiChouJiang,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/cuXiao/PowerActivities',
            name: '助力活动',
            component: PowerActivities,
            redirect:'/Home/cuXiao/PowerActivities/PowerActivitiesTable',
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
            children: [
              {
                path: '/Home/cuXiao/PowerActivities/PowerActivitiesTable',
                name: '助力管理',
                component: PowerActivitiesTable,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },

              {
                path: '/Home/cuXiao/PowerActivities/AddPower',
                name: '添加助力',
                component: AddPower,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/cuXiao/PowerActivities/ModifyPower',
                name: '修改助力',
                component: ModifyPower,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
          },
          {
            path: '/Home/cuXiao/KaQuanGuanLi',
            name: '卡卷管理',
            component: KaQuanGuanLi,
            children: [
              {
                path: '/Home/cuXiao/KaQuanGuanLi/TianJiaKaQuan',
                name: '添加卡卷',
                component: TianJiaKaQuan,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      //       children: [
      //         {
      //           path: '/Home/cuXiao/CouPon/NewCoupons',
      //           name: '新增',
      //           component: NewCoupons,
      //           // children: [
      //           //     { path:'/CouPon',
      //           //         name:'新增（订单发放）',
      //           //         component:'CouPon',
      //           //         meta:{
      //           //             require:false
      //           //         },},
      //           //     { path:'/CouPon',
      //           //         name:'新增（团长优惠）',
      //           //         component:'CouPon',
      //           //         meta:{
      //           //             require:false
      //           //         },},
      //           //     { path:'/CouPon',
      //           //         name:'新增（积分兑换）',
      //           //         component:'CouPon',
      //           //         meta:{
      //           //             require:false
      //           //         },},
      //           //     ],
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/CouPon/youhuijuanGuanLi',
      //           name: '优惠券管理',
      //           component: YouJuanJuanGuanLi,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/CouPon/ViewCoupons',
      //           name: '查看优惠券',
      //           component: ViewCoupons,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/CouPon/LssueCoupons',
      //           name: '发放优惠券',
      //           component: LssueCoupons,
      //           children: [
      //             {
      //               path: '/Home/cuXiao/CouPon/TypeDistribution',
      //               name: '发放（按商品发放）',
      //               component: TypeDistribution,
      //               meta: {
      //                 require: true,
      //               },
      //               role: ['admin', 'user'],
      //             },
      //             {
      //               path: '/Home/cuXiao/CouPon/YongHu',
      //               name: '发放（按用户发放）',
      //               component: YongHu,
      //               meta: {
      //                 require: true,
      //               },
      //               role: ['admin', 'user'],
      //             },
      //           ],
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/CouPon/ModifyCoupon',
      //           name: '修改',
      //           component: ModifyCoupon,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //       ],
      //       role: ['admin', 'user'],
      //     },
      //     {
      //       path: '/Home/cuXiao/MiaoSha',
      //       name: '限时秒杀',
      //       component: MiaoSha,
      //       redirect: '/Home/cuXiao/MiaoSha/XianShiMiaoSha',
      //       meta: {
      //         require: true,
      //       },

      //       children: [
      //         {
      //           path: '/Home/cuXiao/MiaoSha/MiaoShaInsert',
      //           name: '添加秒杀',
      //           component: MiaoShaInsert,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/MiaoSha/XianShiMiaoSha',
      //           name: '限时秒杀',
      //           component: XianShiMiaoSha,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //       ],
      //       role: ['admin', 'user'],
      //     },
      //     {
      //       path: '/Home/cuXiao/Draw',
      //       name: '幸运抽奖',
      //       component: Draw,
      //       redirect: '/Home/cuXiao/Draw/xingYunChouJiang',
      //       children: [
      //         {
      //           path: '/Home/cuXiao/Draw/xingYunChouJiang',
      //           name: '幸运抽奖',
      //           component: XinYunChouJiang,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/Draw/updateDraw',
      //           name: '添加抽奖',
      //           component: updateDraw,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/Draw/LockDraw',
      //           name: '抽奖详情',
      //           component: LockDraw,
      //           redirect: '/Home/cuXiao/Draw/LockDraw/xiangQing',
      //           children: [
      //             {
      //               path: '/Home/cuXiao/Draw/LockDraw/xiangQing',
      //               name: '抽奖详情',
      //               component: ChouJiangXiangQing,
      //               meta: {
      //                 require: true,
      //               },
      //               role: ['admin', 'user'],
      //             },
      //             {
      //               path: '/Home/cuXiao/Draw/LockDraw/WinningUsers',
      //               name: '中奖用户',
      //               component: WinningUsers,
      //               meta: {
      //                 require: true,
      //               },
      //               role: ['admin', 'user'],
      //             },
      //             {
      //               path: '/Home/cuXiao/Draw/LockDraw/NeiDingChouJiang',
      //               name: '内定抽奖',
      //               component: NeiDingChouJiang,
      //               meta: {
      //                 require: true,
      //               },
      //               role: ['admin', 'user'],
      //             },
      //           ],
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/Draw/XiuGaiChouJiang',
      //           name: '修改抽奖',
      //           component: XiuGaiChouJiang,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //       ],
      //       meta: {
      //         require: true,
      //       },
      //       role: ['admin', 'user'],
      //     },
      //     {
      //       path: '/Home/cuXiao/PowerActivities',
      //       name: '助力活动',
      //       component: PowerActivities,
      //       redirect: '/Home/cuXiao/PowerActivities/PowerActivitiesTable',
      //       meta: {
      //         require: true,
      //       },
      //       role: ['admin', 'user'],
      //       children: [
      //         {
      //           path: '/Home/cuXiao/PowerActivities/PowerActivitiesTable',
      //           name: '助力管理',
      //           component: PowerActivitiesTable,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },

      //         {
      //           path: '/Home/cuXiao/PowerActivities/AddPower',
      //           name: '添加助力',
      //           component: AddPower,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/PowerActivities/ModifyPower',
      //           name: '修改助力',
      //           component: ModifyPower,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //       ],
      //     },
      //     {
      //       path: '/Home/cuXiao/KaQuanGuanLi',
      //       name: '卡卷管理',
      //       component: KaJanMain,
      //       redirect: '/Home/cuXiao/KaQuanGuanLi/KaJuanMain',
      //       children: [
      //         {
      //           path: '/Home/cuXiao/KaQuanGuanLi/KaJuanMain',
      //           name: '卡券Main',
      //           component: KaQuanGuanLi,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //         {
      //           path: '/Home/cuXiao/KaQuanGuanLi/TianJiaKaQuan',
      //           name: '添加卡卷',
      //           component: TianJiaKaQuan,
      //           meta: {
      //             require: true,
      //           },
      //           role: ['admin', 'user'],
      //         },
      //       ],
      //       meta: {
      //         require: true,
      //       },
      //       role: ['admin', 'user'],
      //     },
      //   ],
      // },
      {
        name: '订单',
        path: '/Home/dingDan',
        component: Order,
        meta: {
          require: true,
        },
        redirect: '/Home/dingDan/Orderlist',
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/dingDan/Orderlist',
            name: '订单列表',
            redirect: '/Home/dingDan/Orderlist/Orderdetail',
            component: Orderlist,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },

          {
            path: '/Home/dingDan/Orderlist/Orderdetail',
            name: '订单详情',
            component: Orderdetail,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Orderlist/Orderdetail/Operate',
            name: '操作',
            component: Operate,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Orderlist/Orderdetail/Refundman',
            name: '退款管理',
            component: Refundman,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Teamorderlist',
            name: '团购列表',
            component: Teamorderlist,
            redirect: '/Home/dingDan/Teamorderlist/TeamOrderDetail',
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Teamorderlist/TeamOrderDetail',
            name: '团购列表详情',
            component: TeamOrderDetail,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Deliverylist',
            name: '发货单列表',
            component: Deliverylist,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/dingDan/Deliverylist/Deliverydetail',
            name: '发货单列表详情',
            component: Deliverydetail,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          { 
            path:'/Home/dingDan/ZhuliHuoDong',
              name:'退货单列表',
              component:ZhuliHuoDong,
              meta:{
                  require:false
              },
              role:['admin','user']
          },
          {
            path: '/Home/dingDan/Batch',
            name: '批量发货',
            component: Batch,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      {
        name: '网站',
        path: '/Home/wangZhan',
        component:Wangzhan,
        redirect:'/Home/wangZhan/ArticleLists',
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/wangZhan/ArticleLists',
            name: '文章列表',
            redirect:'/Home/wangZhan/ArticleLists/ArticleListsTable',
            component: ArticleLists,
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/wangZhan/ArticleLists/ArticleListsTable',
                name: '文章管理',
                component: ArticleListsTable,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },

              {
                path: '/Home/wangZhan/ArticleLists/ModifyArticle',
                name: '修改文章',
                component: ModifyArticle,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/wangZhan/ArticleLists/NewArticles',
                name: '新增文章',
                component: NewArticles,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/wangZhan/ArticleClassification',
            name: '文章分类',
            component: ArticleClassification,
            redirect:'/Home/wangZhan/ArticleClassification/ArticleClassificationTable',
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/wangZhan/ArticleClassification/ModifyArticleClassification',
                name: '修改文章分类',
                component: ModifyArticleClassification,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/wangZhan/ArticleClassification/ArticleClassificationTable',
                name: '文章分类表格',
                component: ArticleClassificationTable,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],

            role: ['admin', 'user'],
          },
          {
            path: '/Home/wangZhan/AdvertisingList',
            name: '广告列表',
            component: AdvertisingList,
            redirect:'/Home/wangZhan/AdvertisingList/AdvertisingListTabel',
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/wangZhan/AdvertisingList/AdvertisingListTabel',
                name: '广告管理',
                component: AdvertisingListTabel,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/wangZhan/AdvertisingList/ModifyAD',
                name: '修改广告',
                component: ModifyAD,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },

              {
                path: '/Home/wangZhan/AdvertisingList/AddAD',
                name: '添加广告',
                component: AddAD,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
        ],
      },
      {
        name: '会员',
        path: '/Home/huiYuan',
        component: VIP,
        meta: {
          require: true,
        },
        redirect: '/Home/huiYuan/VipManage',
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/huiYuan/VipManage',
            name: '会员管理',
            component: VipManage,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/LookAccount',
            name: '会员账户变动明细',
            component: LookAccount,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/AdjustAccount',
            name: '调整会员账户',
            component: AdjustAccount,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/VipLevel',
            name: '会员等级',
            component: VipLevel,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/SignManage',
            name: '签到管理',
            component: SignManage,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/SignLog',
            name: '签到日志',
            component: SignLog,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/Partner',
            name: '社区合伙人',
            component: Partner,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/AddPartner',
            name: '添加社区合伙人',
            component: AddPartner,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/SetDetails',
            name: '结算详情',
            component: SetDetails,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/huiYuan/SetManage',
            name: '结算管理',
            component: SetManage,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      {
        name: '权限',
        path: '/Home/quanXian',
        component: QuanXian,
        redirect: '/Home/quanXian/Maneger',
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        children: [
          {
            path: '/Home/quanXian/AddManeger',
            name: '添加管理员',
            component: AddManeger,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/quanXian/AssignPermissions/:id',
            name: '分配权限',
            component: AssignPermissions,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/quanXian/SelectLog/:id',
            name: '查看日志',
            component: SelectLog,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/quanXian/ChangManeger/:id',
            name: '修改管理员',
            component: ChangManeger,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/quanXian/Maneger',
            name: '管理员管理',
            component: Maneger,
            meta: {
              require: true,
            },

            children: [],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/quanXian/ManegerLog',
            name: '管理员日志管理',
            component: ManegerLog,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
      {
        name: '设置',
        path: '/Home/SheZhi',
        component: SheZhi,
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        redirect: '/Home/SheZhi/StoreSet/StoreInfo',
        children: [
          {
            path: '/Home/SheZhi/StoreSet',
            name: '商店设置',
            component: StoreSet,
            redirect: '/Home/SheZhi/StoreSet/StoreInfo',
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/SheZhi/StoreSet/StoreInfo',
                name: '商店信息',
                component: StoreInfo,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreBasicSet',
                name: '基本设置',
                component: StoreBasicSet,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreShowSet',
                name: '显示设置',
                component: StoreShowSet,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreShoppingProcess',
                name: '购物流程',
                component: StoreShoppingProcess,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreInter',
                name: '接口设置',
                component: StoreInter,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreGoodsShow',
                name: '商品显示设置',
                component: StoreGoodsShow,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoreSet/StoreShareSet',
                name: '分享设置',
                component: StoreShareSet,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/SheZhi/SetMenu',
            name: '菜单管理',
            component: SetMenu,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/SheZhi/SetPay',
            name: '支付方式',
            component: SetPay,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
            children: [
              {
                path: '/Home/SheZhi/SetPay/ModifyStore',
                name: '修改支付方式',
                component: AddAD,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
          },
          {
            path: '/Home/SheZhi/SetDelivery',
            name: '配送方式',
            component: SetDelivery,
            meta: {
              require: true,
            },

            role: ['admin', 'user'],
          },
          {
            path: '/Home/SheZhi/SetDeliveryArea',
            name: '配送区域',
            component: SetDeliveryArea,
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/SheZhi/SetDeliveryArea/AddDeliveryArea',
                name: '添加配送区域',
                component: AddDeliveryArea,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/SheZhi/StoeList',
            name: '门店列表',
            component: StoeList,
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/SheZhi/StoeList/AddStore',
                name: '添加门店',
                component: AddStore,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoeList/ModifyStore',
                name: '修改门店',
                component: ModifyStore,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/SheZhi/StoeList/BoundManage',
                name: '绑定管理员',
                component: BoundManage,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
        ],
      },
      {
        name: '微信',
        path: '/Home/WeiXin',
        component: WeiXin,
        meta: {
          require: true,
        },
        role: ['admin', 'user'],
        redirect: '/Home/WeiXin/WeiXinSet',
        children: [
          {
            path: '/Home/WeiXin/WeiXinSet',
            name: '微信设置',
            component: WeiXinSet,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
            // children:[
            //     {
            //         path:'/AddClass',
            //         name:'商品',
            //         component:'AddClass',
            //         meta:{
            //             require:false
            //         },
            // },
            //     {
            //         path:'/AddGoods',
            //         name:'商品',
            //         component:'AddGoods',
            //         meta:{
            //             require:false
            //         },
            //     },
            // ]
          },
          {
            path: '/Home/WeiXin/WeiXinMenu',
            name: '微信菜单',
            component: WeiXinMenu,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/WeiXin/WeiXinModuleInfo',
            name: '模板消息',
            component: WeiXinModuleInfo,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/WeiXin/WeiXinPushInfo',
            name: '推送消息',
            component: WeiXinPushInfo,
            meta: {
              require: true,
            },

            children: [
              {
                path: '/Home/WeiXin/WeiXinPushInfo/WeiXinPushList',
                name: '推送列表',
                component: WeiXinPushList,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
              {
                path: '/Home/WeiXin/WeiXinPushInfo/WeiXinTestVIP',
                name: '测试会员',
                component: WeiXinTestVIP,
                meta: {
                  require: true,
                },
                role: ['admin', 'user'],
              },
            ],
            role: ['admin', 'user'],
          },
          {
            path: '/Home/WeiXin/WeiXinShareRecord',
            name: '分享记录',
            component: WeiXinShareRecord,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
          {
            path: '/Home/WeiXin/WeiXinOrderMsg',
            name: '商品评论',
            component: WeiXinOrderMsg,
            meta: {
              require: true,
            },
            role: ['admin', 'user'],
          },
        ],
      },
    ],
  },
];
export default LuYou;
